﻿using System.Data;

namespace IdentityService.WebAPI.Controllers.Login;

public record ChangeMyInfoRequest(string Name, string Avatar);

public class ChangeInfoRequestValidator : AbstractValidator<ChangeMyInfoRequest>
{
    public ChangeInfoRequestValidator()
    {
        RuleFor(e => e.Name).NotNull().NotEmpty();
        RuleFor(e => e.Avatar).NotNull().NotEmpty();
    }
}